<?php
require_once 'common/init.php';
require_once 'config/conf.inc.php';

function main()
{
	global $tpl;
	
	$user = LoginManager::get_login_user();
	if (empty($user))
	{
		$tpl->assign("login_status", LOGINSTATUS_OFF);
	}
	else
	{
		$tpl->assign("login_status", LOGINSTATUS_ON);
		$tpl->assign("login_user", $user);
	}
//echo "user=$user";
	$ret = $tpl->display('buy.html');
}

main();

?>